// ReSharper disable RedundantUsingDirective
// ReSharper disable DoNotCallOverridableMethodsInConstructor
// ReSharper disable InconsistentNaming
// ReSharper disable PartialTypeWithSinglePart
// ReSharper disable PartialMethodWithSinglePart
// ReSharper disable RedundantNameQualifier

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration;
//using DatabaseGeneratedOption = System.ComponentModel.DataAnnotations.DatabaseGeneratedOption;

namespace wUniApp.MVC.App_Data
{
    // Customers
    public partial class Customer
    {
        public int Id { get; set; } // Id (Primary key)
        public string FirstName { get; set; } // FirstName
        public string LastName { get; set; } // LastName
        public int Age { get; set; } // Age
        public decimal MonthlyIncome { get; set; } // MonthlyIncome
        public int ChildsCount { get; set; } // ChildsCount
        public int ProductId { get; set; } // ProductId
        public string Notes { get; set; } // Notes
        public string Email { get; set; } // Email

        // Reverse navigation
        public virtual ICollection<Execution> Executions { get; set; } // Executions.FK_Executions_Customers
        public virtual ICollection<InheritanceProcedure> InheritanceProcedures { get; set; } // InheritanceProcedures.FK_InheritanceProcedures_Customers

        // Foreign keys
        public virtual Product Product { get; set; } // FK_Customers_Products

        public Customer()
        {
            Executions = new List<Execution>();
            InheritanceProcedures = new List<InheritanceProcedure>();
            InitializePartial();
        }
        partial void InitializePartial();
    }

}
